package com.maryluo.admin.user.controller;

import com.maryluo.admin.user.domain.AdminUser;
import com.maryluo.admin.user.service.AdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description : JMS消息生产者
 * @Project : maryluo
 * @Program Name  : com.maryluo.admin.user.controller.UserRest.java
 * @Author : maruili on  2017/2/22
 */
@RequestMapping("/adminuser")
@RestController
public class UserController {
    @Autowired
    private AdminUserService adminUserService;
    @RequestMapping(value="/listall",method= RequestMethod.GET)
    public List<AdminUser> listall(){
        return adminUserService.listAll();
    }
}
